package com.unlcn.ils.kas.service.util.enums.order;

public enum OrderDetailDeleteFlagEnum {

	NORMAL(0, "未删除"), DELETE(1, "已删除");

	Integer code;

	String msg;

	OrderDetailDeleteFlagEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return this.code;
	}

	public String getMsg() {
		return this.msg;
	}

	public static OrderDetailDeleteFlagEnum getByValue(String code) {
		for (OrderDetailDeleteFlagEnum temp : OrderDetailDeleteFlagEnum.values()) {
			if (temp.getCode() == Integer.parseInt(code)) {
				return temp;
			}
		}
		return null;
	}
}
